Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: upgrade hcloud-go to v2 #1062

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

fix: upgrade hcloud-go to v2 #1062

wants to merge 11 commits into from

Conversation

jooola
Copy link
Member

@jooola jooola commented Dec 23, 2024

Attempt to migrate the hcloud-go library to v2, to be able to finally drop the v1 version.

We previously discussed of not going this route, but the effort of porting new features in both hcloud-go versions is bigger than upgrade the library in the terrafrom plugin.

If this change ends up being impossible to test and too dangerous, we will just continue the route we initially choose: migrating for to the plugin framework then the hcloud-go library.

Fix #877

@jooola jooola requested a review from a team as a code owner December 23, 2024 15:52
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 8.00000% with 184 lines in your changes missing coverage. Please review.

Project coverage is 30.66%. Comparing base (3801920) to head (9154b9e).

Files with missing lines Patch % Lines
internal/server/resource.go 0.00% 31 Missing ⚠️
internal/loadbalancer/resource_target.go 0.00% 11 Missing ⚠️
internal/primaryip/resource.go 0.00% 11 Missing ⚠️
internal/floatingip/resource_assignment.go 0.00% 8 Missing ⚠️
internal/floatingip/resource.go 0.00% 7 Missing ⚠️
internal/volume/resource.go 0.00% 7 Missing ⚠️
internal/datacenter/data_source.go 0.00% 6 Missing ⚠️
internal/firewall/resource.go 0.00% 6 Missing ⚠️
internal/snapshot/resource.go 0.00% 6 Missing ⚠️
internal/volume/resource_attachment.go 0.00% 6 Missing ⚠️
... and 30 more
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1062       +/-   ##
===========================================
- Coverage   66.52%   30.66%   -35.87%     
===========================================
  Files          66       67        +1     
  Lines        9942     9951        +9     
===========================================
- Hits         6614     3051     -3563     
- Misses       2613     6860     +4247     
+ Partials      715       40      -675     
Flag Coverage Δ
e2e ?
unit 30.66% <8.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Update to hcloud-go v2
1 participant